package Graphics;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import javax.swing.JFrame;

import Game.GameController;
import Game.GameModel;

public class GameFrame extends JFrame {
	private GameController controller;
	private GamePanel panel;
	
	public GameFrame(GameController controller) {
		super();
		
		this.setTitle("NIA Device Final Project");
		panel = new GamePanel(controller);
		
		
		KeyListener keyListener = new KeyListener() {
			public void keyPressed(KeyEvent event) { }
			public void keyReleased(KeyEvent event) { }
			public void keyTyped(KeyEvent event) { }
		};
		
		this.controller = controller;
		this.addMouseListener(new GameMouseListener(controller));
		this.addKeyListener(keyListener);
		this.add(panel);
	}
	
	public void repaint() {
		super.repaint();
	}
}
